<?php
include("../inc/conn.inc");
include("islogin.php");
$url="paylist.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=10;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心-三帝贸易网</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="mian">
<?php include("inc/top.php");?>
<div class="top1"><span>您当前位置：<a href="/member/index.php" class="dh">会员助手</a> &gt;&gt; 三帝币 &gt;&gt; 账单信息</span></div>
<div class="left">
<?php include("inc/left.php");?>
</div>
<div class="right">
<?php 
 $m_rs=mysql_query("select * from member where id='".$_COOKIE['user_id']."'");
 $m_row=mysql_fetch_array($m_rs);
?>
<TABLE width="100%" border="0" cellPadding="0" cellSpacing="1" bgcolor="#C1DCF5">
    <TR>
      <TD height="40" bgcolor="#EFF6FF" style="font-size:18px;font-weight:bold;padding-left:8px;">账单信息</TD>
    </TR>
  </TABLE>
  <table border="0" align=center cellpadding="6" cellspacing="1" width="100%" bgcolor="#B6CAE3">
    <tr bgcolor="#F2F6FB">
      <td>&nbsp; 帐户:<span style="color:red"><?=$m_row[m_user]?></span></td>
    </tr>
    <tr bgcolor=#ffffff>
      <td>&nbsp;目前身份: <?php if($m_row['m_type']==3){echo "普通会员";}else{echo "钻石会员";}?>┊ 帐户余额: <img src="images/sdb.gif" width="16" height="16"><span class="money"> <?=$m_row[m_jifen]?> 三帝币</span>&nbsp;&nbsp;&nbsp;<a href="pay.php">充值</a></td></tr>
  </table>
  <table width="100%" border="0" align=center cellpadding="5" cellspacing="1" bgcolor="#DCE6F1">
    <tr bgcolor="#F2F6FB">
        <td colspan=5><font color=red> &nbsp;帐单信息</font></td>
    </tr>
    <tr>
      <td width="8%" align=center bgcolor="#F2F6FB">编号</td>
      <td width="13%" align=center bgcolor="#F2F6FB">充值</td>
      <td width="13%" align=center bgcolor="#F2F6FB">消费</td>
      <td align=center bgcolor="#F2F6FB">交易时间</td>
      <td width="39%" align="center" valign="middle" bgcolor="#F2F6FB" >备注</td>
    </tr>
<?php
$sql="select * from jifen where member_id='".$_COOKIE['user_id']."' order by id desc limit ".($thepage-1)*$maxpage.",$maxpage";
$rs=mysql_query($sql);
$i=1;
while($row=mysql_fetch_array($rs)){
?>
    <tr onMouseOver="this.bgColor='#F5F5F5';" onMouseOut="this.bgColor='ffffff';" bgcolor=ffffff>
      <td align=center bgcolor="#FFFFFF"><?=$i?></td>
      <td align=center bgcolor="#FFFFFF"><?php if($row[j_type]==2){echo $row[j_num];}?></td>
      <td align=center bgcolor="#FFFFFF"><?php if($row[j_type]==1){echo $row[j_num];}?></td>
      <td align=center bgcolor="#FFFFFF"><?=$row['add_time']?></td>
      <td align="center" valign="middle" bgcolor="#FFFFFF" ><?=$row[j_name]?></td>
    </tr>
<?php
$i++;
}?>
<?php
$totalrecord=mysql_num_rows(mysql_query("select * from jifen where member_id='".$_COOKIE['user_id']."'"));
$totalpage=ceil($totalrecord/$maxpage);
?>
  </table>
  <table border="0" align=center cellpadding="2" cellspacing="1" width="100%" bgcolor="#B6CAE3">
    <tr bgcolor="#F2F6FB">
      <td align=center><table width=100% border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="17%">共有信息<font color="#990000"><?=$totalrecord?></font>条</td>
            <td Align=center Width=18%><input type=button name=button3 value="打印本页" class=bt1 onClick="javascript:window.print()"></td>
            <td width="65%" align=right>
              <script language="javascript">
<!--
function showPageLink(sUrl,iPage,iCount){
	var i;
	i=Math.max(1,iPage-1);
	document.write("<a href=\"" + sUrl + "1\">«</a> ");
	document.write("<a href=\"" + sUrl + i + "\">上一页</a> ");
	for(i=Math.max(1,iPage-8);i<iPage;i++){
		document.write("<a href=\""+sUrl + i + "\"><b>" + i + "</b></a> ");
	}
	document.write("<font color='#ff3333'><b>" + iPage + "</b></font> ");
	for(i=iPage+1;i<=Math.min(iCount,iPage+8);i++){
		document.write("<a href=\""+sUrl + i + "\"><b>" + i + "</b></a> ");
	}
	i=Math.min(iCount,iPage+1);
	if(iCount>iPage+8) document.write("<span style='font-size:8px'>···</span> ");
	document.write("<a href=\"" + sUrl + i + "\">下一页</a> ");
	document.write("<a href=\"" + sUrl + iCount + "\">»</a> ");
}
showPageLink("<?=$url?>?page=",<?=$thepage?>,<?=$totalpage?>);
//-->
</script></td>
          </tr>
      </table></td>
    </tr>
    <tr Bgcolor="#ffffff">
      <td Align=right>&nbsp;</td>
    </tr>
  </table>
  <TABLE width="100%" border="0" cellPadding="0" cellSpacing="1" bgcolor="#FFA6A6">
    <tr>
      <td height="30" colspan="2" style="padding:3px;"><b>三帝会员服务内容介绍</b></td>
    </tr>
    <TR>
      <TD width="50%" height="45" valign="top" bgcolor="#FFEEEE" style="padding:5px;line-height:18px;"><b style="color:#0000FF">钻石会员</b><br>
        1、发布产品不限制，产品优先被审核。<br>
        2、产品重发不限制。<br>
        3、送企业网站，送独立二级域名，含有新闻系统。<br>
        4、网站风格可以更新。<br>
        5、可以上传企业logo、企业宣传图片、会员头像。<br>
        6、送招聘网站<br>
        7、发布展会。<br>
        8、成为三帝贸易网的供应商。</TD>
      <TD width="50%" valign="top" bgcolor="#FFEEEE" style="padding:5px;line-height:18px;"><b style="color:#0000FF">普通会员</b><br>
        1、发布产品限制10条。<br>
        2、产品重发限制10条。<br>
        3、送企业网站，无独立域名，无新闻系统。<br>
        4、网站风格不能跟新。<br>
        5、禁止上传企业logo、企业宣传图片、会员头像。<br>
        6、送招聘网站。<br>
        7、发布展会。<br>
        8、成为三帝贸易网的供应商。 </TD>
    </TR>
  </TABLE>
  <br>
  <?php include("taocan.php")?>
  <br>
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCC66">
    <tr>
      <td height="30" style="padding:3px;color:#009966"><b>三帝币介绍</b></td>
    </tr>
    <tr>
      <td height="30" bgcolor="#FFFFFF" style="padding-left:5px; line-height:22px;">&nbsp;&nbsp;&nbsp;&nbsp;三帝币简称SDB，是由三帝推出的一种虚拟货币，可以支付三帝会员服务等服务。通常它的兑价是1三帝币=1人民币。<br>
        &nbsp;&nbsp;&nbsp;&nbsp;三帝币获得方式：财付通网上在线充值，网上转账。<br>
        &nbsp;&nbsp;&nbsp;&nbsp;三帝币支付服务：三帝币可以支付三帝网站的所有服务（包括申请三帝账号，升级钻石会员，查看招标信息，下载三帝资料等方式）。</td>
    </tr>
  </table>
</div>
<div class="onl"></div>
<?php include("inc/foot.php");?>
</div>
</body>
</html>
